<?php

use Illuminate\Database\Seeder;

class RoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $roles = [
            ['title'=>'超级管理员','name'=>'daoheng','system'=>1],
            ['title'=>'一般用户','name'=>'edit']
        ];
        foreach ($roles as $role){
            \Spatie\Permission\Models\Role::create($role);
        }

    }
}
